package com.yellowpage.sample.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * HtmlTemplate entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "WEB_HTML_TEMPLATE")
public class HtmlTemplate implements java.io.Serializable {

	// Fields

	private Long htmlTemplateId;
	private Long resourceId;
	private String name;
	private String type;
	private Date createTime;
	private Long createUser;
	private Date lastUpdateTime;
	private Long lastUpdateUser;
	private String status;

	// Constructors

	/** default constructor */
	public HtmlTemplate() {
	}

	/** full constructor */
	public HtmlTemplate(Long resourceId, String name, String type,
			Date createTime, Long createUser, Date lastUpdateTime,
			Long lastUpdateUser, String status) {
		this.resourceId = resourceId;
		this.name = name;
		this.type = type;
		this.createTime = createTime;
		this.createUser = createUser;
		this.lastUpdateTime = lastUpdateTime;
		this.lastUpdateUser = lastUpdateUser;
		this.status = status;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "HTML_TEMPLATE_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getHtmlTemplateId() {
		return this.htmlTemplateId;
	}

	public void setHtmlTemplateId(Long htmlTemplateId) {
		this.htmlTemplateId = htmlTemplateId;
	}

	@Column(name = "RESOURCE_ID", precision = 18, scale = 0)
	public Long getResourceId() {
		return this.resourceId;
	}

	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}

	@Column(name = "NAME", length = 128)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "TYPE", length = 128)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 7)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "CREATE_USER", precision = 18, scale = 0)
	public Long getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LAST_UPDATE_TIME", length = 7)
	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	@Column(name = "LAST_UPDATE_USER", precision = 18, scale = 0)
	public Long getLastUpdateUser() {
		return this.lastUpdateUser;
	}

	public void setLastUpdateUser(Long lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	@Column(name = "STATUS", length = 12)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}